package com.rose.datax.dataxadmin.exception;

public enum ErrorCodes {

    PARMETER_EXCEPTION("101", "参数异常!"),
    SERVICE_TIME_OUT("102", "服务调用超时！"),
    CAST_ERROR("103", "数据转换错误"),

    MISS_PARAMS("400", "缺少请求参数"),

    UNEXPECTED_EXCEPTION("500", "系统发生异常，请联系管理员！");

    private String code;

    private String msg;

    private ErrorCodes(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String code() {
        return code;
    }

    public String msg() {
        return msg;
    }
}
